<?php

// this add by martin to check database

/* TODO: Add code here */

//require_once 'common.inc.php';

//echo "Hellow word";

//$sql = "SELECT `id`, `name` FROM `system";
//$query = $db->query($sql);
//while($rs = $db->fetch_array($query)) {
//  echo $rs['name'].'<br/>';
//}
//
//
//$system_ary = getSystemValue("");
//$out_email = $system_ary['webmaster_email'];
//$out_name = $system_ary['webmaster_name'];
//echo $out_name.'<br>';

$COUNTRY_ARY = array(
		'1' => 'Afghanistan',
		'2' => 'Albania',
		'3' => 'Algeria',
		'4' => 'Andorra',
		'5' => 'Angola',
		'6' => 'Anguilla',
		'7' => 'Antigua/Barbuda',
		'8' => 'Argentina',
		'9' => 'Armenia',
		'10' => 'Aruba',
		'11' => 'Australia',
		'12' => 'Austria',
		'13' => 'Azerbaijan',
		'14' => 'Azores',
		'15' => 'Bahamas',
		'16' => 'Bahrain',
		'17' => 'Bangladesh',
		'18' => 'Barbados',
		'19' => 'Belarus',
		'20' => 'Belgium',
		'21' => 'Belize',
		'22' => 'Benin',
		'23' => 'Bermuda',
		'24' => 'Bhutan',
		'25' => 'Bolivia',
		'26' => 'Bosnia Herzegovina',
		'27' => 'Botswana',
		'28' => 'Brazil',
		'29' => 'British Virgin Islands',
		'30' => 'Brunei Darussalam',
		'31' => 'Bulgaria',
		'32' => 'Burkina Faso',
		'33' => 'Burma',
		'34' => 'Burundi',
		'35' => 'Cameroon',
		'36' => 'Canada',
		'37' => 'Cape Verde',
		'38' => 'Cayman Islands',
		'39' => 'Central African Republic',
		'40' => 'Chad',
		'41' => 'Chile',
		'42' => 'China',
		'43' => 'Colombia',
		'44' => 'Comoros',
		'45' => 'Congo',
		'46' => 'Corsica',
		'47' => 'Costa Rica',
		'48' => 'Cote d\'Ivoire (Ivory Coast)',
		'49' => 'Croatia',
		'50' => 'Cyprus',
		'51' => 'Czech Republic',
		'52' => 'Denmark',
		'53' => 'Djibouti',
		'54' => 'Dominica',
		'55' => 'Dominican Republic',
		'56' => 'Ecuador',
		'57' => 'Egypt',
		'58' => 'El Salvador',
		'59' => 'Equatorial Guinea',
		'60' => 'Eritrea',
		'61' => 'Estonia',
		'62' => 'Ethiopia',
		'63' => 'Falkland Islands',
		'64' => 'Faroe Islands',
		'65' => 'Fiji',
		'66' => 'Finland',
		'67' => 'France/Monaco',
		'68' => 'French Guiana',
		'69' => 'French Polynesia',
		'70' => 'Gabon',
		'71' => 'Gambia',
		'72' => 'Georgia, Republic of',
		'73' => 'Germany',
		'74' => 'Ghana',
		'75' => 'Gibraltar',
		'76' => 'Great Britain/N. Ireland',
		'77' => 'Greece',
		'78' => 'Greenland',
		'79' => 'Grenada',
		'80' => 'Guadeloupe',
		'81' => 'Guatemala',
		'82' => 'Guinea',
		'83' => 'Guinea Bissau',
		'84' => 'Guyana',
		'85' => 'Haiti',
		'86' => 'Honduras',
		'87' => 'Hong Kong',
		'88' => 'Hungary',
		'89' => 'Iceland',
		'90' => 'India',
		'91' => 'Indonesia',
		'92' => 'Iran',
		'93' => 'Iraq',
		'94' => 'Ireland',
		'95' => 'Israel',
		'96' => 'Italy',
		'97' => 'Jamaica',
		'98' => 'Japan',
		'99' => 'Jordan',
		'100' => 'Kazakhstan',
		'101' => 'Kenya',
		'102' => 'Kiribati',
		'103' => 'Korea (North)',
		'104' => 'Korea (South)',
		'105' => 'Kuwait',
		'106' => 'Kyrgyzstan',
		'107' => 'Laos',
		'108' => 'Latvia',
		'109' => 'Lebanon',
		'110' => 'Lesotho',
		'111' => 'Liberia',
		'112' => 'Libya',
		'113' => 'Liechtenstein',
		'114' => 'Lithuania',
		'115' => 'Luxembourg',
		'116' => 'Macao',
		'117' => 'Macedonia',
		'118' => 'Madagascar',
		'119' => 'Madeira Islands',
		'120' => 'Malawi',
		'121' => 'Malaysia',
		'122' => 'Maldives',
		'123' => 'Mali',
		'124' => 'Malta',
		'125' => 'Martinique',
		'126' => 'Mauritania',
		'127' => 'Mauritius',
		'128' => 'Mexico',
		'129' => 'Moldova',
		'130' => 'Mongolia',
		'131' => 'Montserrat',
		'132' => 'Morocco',
		'133' => 'Mozambique',
		'134' => 'Namibia',
		'135' => 'Nauru',
		'136' => 'Nepal',
		'137' => 'Netherlands',
		'138' => 'Netherlands Antilles',
		'139' => 'New Caledonia',
		'140' => 'New Zealand',
		'141' => 'Nicaragua',
		'142' => 'Niger',
		'143' => 'Nigeria',
		'144' => 'Norway',
		'145' => 'Oman',
		'146' => 'Pakistan',
		'147' => 'Panama',
		'148' => 'Papua New Guinea',
		'149' => 'Paraguay',
		'150' => 'Peru',
		'151' => 'Philippines',
		'152' => 'Pitcairn Island',
		'153' => 'Poland',
		'154' => 'Portugal',
		'155' => 'Qatar',
		'156' => 'Republic of',
		'157' => 'Reunion',
		'158' => 'Romania',
		'159' => 'Russia',
		'160' => 'Rwanda',
		'161' => 'Saint Helena',
		'162' => 'Saint Lucia',
		'163' => 'Saint Pierre/Miquelon',
		'164' => 'Saint Vincent/Grenadines',
		'165' => 'San Marino',
		'166' => 'Sao Tome and Principe',
		'167' => 'Saudi Arabia',
		'168' => 'Senegal',
		'169' => 'Serbia Monteneg/Yugoslavia',
		'170' => 'Seychelles',
		'171' => 'Sierra Leone',
		'172' => 'Singapore',
		'173' => 'Slovak Republic',
		'174' => 'Slovenia',
		'175' => 'Solomon Islands',
		'176' => 'Somalia',
		'177' => 'South Africa',
		'178' => 'Spain',
		'179' => 'Sri Lanka',
		'180' => 'St. Kitts and Nevis',
		'181' => 'Sudan',
		'182' => 'Suriname',
		'183' => 'Swaziland',
		'184' => 'Sweden',
		'185' => 'Switzerland',
		'186' => 'Syria',
		'187' => 'Taiwan',
		'188' => 'Tajikistan',
		'189' => 'Tanzania',
		'190' => 'Thailand',
		'191' => 'Togo',
		'192' => 'Tonga',
		'193' => 'Trinidad/Tobago',
		'194' => 'Tristan da Cunha',
		'195' => 'Tunisia',
		'196' => 'Turkey',
		'197' => 'Turkmenistan',
		'198' => 'Turks/Caicos Islands',
		'199' => 'Tuvalu',
		'200' => 'Uganda',
		'201' => 'Ukraine',
		'202' => 'United Arab Emirates',
		'216' => 'UK',
		'203' => 'USA',
		'204' => 'Uruguay',
		'205' => 'Uzbekistan',
		'206' => 'Vanuatu',
		'207' => 'Vatican City',
		'208' => 'Venezuela',
		'209' => 'Vietnam',
		'210' => 'Wallis/Futuna Islands',
		'211' => 'Western Samoa',
		'212' => 'Yemen',
		'213' => 'Zaire',
		'214' => 'Zambia',
		'215' => 'Zimbabwe',
		);
		
$str='<table>';	
foreach($COUNTRY_ARY as $k=>$v)
{
	$str= $str.'<tr><td>'.$v.'</td></tr>';
	
}
	$str=$str.'<table>';	
echo $str;


?>